﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Transactions;

namespace MilageMVC.Tests
{
  public  class TestBase
    {

      TransactionScope _transactionScope = null;

      [TestInitialize]
      public void Setup()
      {
          this._transactionScope = new TransactionScope();
      }

      [TestCleanup]
      public void Cleanup()
      {
          if (_transactionScope != null)
          {
              this._transactionScope.Dispose();
          }
      }
    }
}
